/*
 * Util.java
 *
 * Created on 11 de Novembro de 2007, 15:52
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package classes;

import java.util.ArrayList;
import javax.swing.JOptionPane;

/**
 *
 * @author kurumin
 */
public class Util
{
    
    /** Creates a new instance of Util */
    public Util()
    {
    }
    public static int posicao(String n,ArrayList <String> m){
        int i=0;
        while(i < m.size() ){
           if(m.get(i).equals(n))
              return i;
           i++;
        }
        return -1;
    }
}
